]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Lower scroll timeout
authorAlexander Mikhaylenko <exalm7659@gmail.com>
Sat, 9 May 2020 14:27:00 +0000 (19:27 +0500)
committerAlexander Mikhaylenko <exalm7659@gmail.com>
Sat, 9 May 2020 14:27:36 +0000 (19:27 +0500)
Looks like 250ms is too high, lower it to 150ms.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2602

js/ui/workspacesView.js

index 942b874498e733d84ca90a5994182e5fa88668de..09155c5ae1576a475239810634540c6f606cf7f4 100644 (file)
@@ -8,6 +8,7 @@ const SwipeTracker = imports.ui.swipeTracker;
 const Workspace = imports.ui.workspace;
 
 var WORKSPACE_SWITCH_TIME = 250;
+var SCROLL_TIMEOUT_TIME = 150;
 
 var AnimationType = {
     ZOOM: 0,
@@ -815,7 +816,7 @@ class WorkspacesDisplay extends St.Widget {
 
         this._canScroll = false;
         this._scrollTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT,
-            WORKSPACE_SWITCH_TIME, () => {
+            SCROLL_TIMEOUT_TIME, () => {
                 this._canScroll = true;
                 this._scrollTimeoutId = 0;
                 return GLib.SOURCE_REMOVE;